//    Copyright (C) Kherty.  All rights reserved.
namespace OpenLS.Spreadsheet.Expressions
{
    abstract class DimensionReferenceToken : RangeReferenceToken
    {
        private readonly bool _firstlLocked;
        private readonly int _secondIndex;
        private readonly bool _secondLocked;
        private readonly int _firstIndex;

        protected DimensionReferenceToken(int firstIndex, bool firstLocked, int secondIndex, bool secondLocked)
        {
            _firstlLocked = firstLocked;
            _secondIndex = secondIndex;
            _secondLocked = secondLocked;
            _firstIndex = firstIndex;
        }

        public bool SecondLocked
        {
            get { return _secondLocked; }
        }

        public int SecondIndex
        {
            get { return _secondIndex; }
        }

        public int FirstIndex
        {
            get { return _firstIndex; }
        }

        public bool FirstlLocked
        {
            get { return _firstlLocked; }
        }
    }
}